<%@ page language="java" import="java.util.*" contentType="text/html;charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="<c:url value="/main.css"/>" rel="stylesheet" type="text/css" />
<title>tonr</title>
</head>
<body>
	<div id="container">

		<ul id="mainlinks">
			<li><a href="<c:url value="/index.jsp"/>">home</a></li>
			<li><a href="<c:url value="/login.jsp"/>" class="selected">login</a></li>
			<li><a href="<c:url value="/sparklr/photos"/>">sparklr pics</a></li>
			
		</ul>

		<div id="content">
			<c:if test="${not empty param.authentication_error}">
				<h1>哎呀!</h1>

				<p class="error">您的登录尝试不成功。</p>
			</c:if>
			<c:if test="${not empty param.authorization_error}">
				<h1>哎呀!</h1>

				<p class="error">不允许您访问该资源。</p>
			</c:if>

			<h1>登陆</h1>

			<p>请输入你的用户名及密码 </p>

			<form action="<c:url value="/login.do"/>" method="post">
				<p>
					<label>用户名:<input type='text' name='j_username'
						/></label>
				</p>
				<p>
					<label>密码:  <input type='password' name='j_password'
						/></label>
				</p>

				<p>
					<input name="login" value="登录" type="submit"/>
					<a href="<c:url value="/register.jsp"/>" style ="margin-left: 140px;">注册</a>
				</p>
			</form>

			<p class="footer">
					DKY5234
					
			</p>
		</div>
	</div>
</body>
</html>